<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			body{
				/* background-image: url(img/bj.jpg);
				background-repeat: no-repeat; */
				/* 背景随着页面滚动:scroll,默认值
				页面背景滚动而固定:fixed */
				/* background-attachment: fixed; */
				/* background-position: 20%; */
				/* 复合写法:
				background:color image repeat attachment position/size */
				background: gainsboro url(img/bj.jpg) no-repeat fixed center/100% 100%;
			}
			.box{
				width: 1000px;
				height: 1800px;
				border: 1px solid chartreuse;
				/* transparent:透明色 */
				 background-color: #f3b; 
				background-image: url(img/bj.jpg);
				/* 背景图片重复显示:repeat
				背景图片不重复显示:no-repeat */
				background-repeat: repeat;
				font-size: 36px;
				margin: auto;
			}
		</style>
	</head>
	<body>
		<div class="box">
			这是盒子的内容
		</div>
	</body>
</html>
